x = 120
def f():
    global x
    print  x
    x =300
f()
print x

